import App from '../App'

import Vue from 'vue'
import Router from 'vue-router'
// import actualDetail from '../views/home/children/actualDetail'
// import sumDetail from '../views/home/children/sumDetail'
// import fdDetail from '../views/home/children/fdDetail'
// import regList from '../views/home/children/regList'
// import register from '../views/home/children/register'
// import mhome from '../views/home/mhome'
// import phome from '../views/home/phome'
// import home from '../views/home/home'
import actualDetail from '../views/home/mhome/children/actualDetail'
import sumDetail from '../views/home/mhome/children/sumDetail'
import fdDetail from '../views/home/mhome/children/fdDetail'
import regList from '../views/home/mhome/children/regList'
import register from '../views/home/mhome/children/register'
import mhome from '../views/home/mhome/mhome'
import phome from '../views/home/phome/phome'
import home from '../views/home/home'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: '/',
      // name: '主页',
      component: App,
      children: [{
        path: '',
        redirect: '/home'
      }]
    },
    // {
    //   path: '',
    //   redirect: '/home'
    // },
    {
      path: '/home', // 首页
      component: home
    },
    {
      path: '/phome',
      component: phome
    },
    {
      path: '/mhome',
      component: mhome,
      children: [
        {
          path: 'actualDetail',
          component: actualDetail
        },
        {
          path: 'sumDetail',
          component: sumDetail
        },
        {
          path: 'fdDetail',
          component: fdDetail
        },
        {
          path: 'regList',
          component: regList
        },
        {
          path: 'register',
          component: register
        }
      ]
    }  
  ]
})
